package apis;

import org.junit.*;
import static org.junit.Assert.*;
public class CalcAPITest {
	CalcAPI capi= new CalcAPI();

	//@BeforeSuite
	//@BeforeTest
	
	
	@BeforeClass 
	public static void setUpClass()
		{
			System.out.println("before class");
		}

	@Before
	public void setUp()
		{
			System.out.println("before test methods");
		}

  @Test 
  public void testAdd() {
	 int res= capi.add(3, 0);
	 assertEquals(res, 3);
	 System.out.println("Testcase1");
  }
  
  @Test
  public void testSub() {
	
	//  System.out.println("first value is "+ s1+ " and second value is "+s2);

  }
  
  @Test
  public void testMul() {
	  int res=capi.mult(2, -1);
	  assertEquals(-2, res);
  }
  
  public void abcd()
  {
	  System.out.println("Sample message");
	  System.out.println("this is junk method");
  }
  
}
